package com.yugao.fintech.draper.oss.propertie;

import com.yugao.fintech.draper.oss.client.ftp.FtpProperties;
import com.yugao.fintech.draper.oss.client.local.LocalProperties;
import com.yugao.fintech.draper.oss.client.oss.OssProperties;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.NestedConfigurationProperty;

@Data
@ConfigurationProperties(prefix = "oss.storage")
public class FileStorageProperties {

	@NestedConfigurationProperty
	private OssProperties oss = new OssProperties();

	@NestedConfigurationProperty
	private LocalProperties local = new LocalProperties();

	@NestedConfigurationProperty
	private FtpProperties ftp = new FtpProperties();

}
